$(function () {
     $.ajax({
          type: 'get',
          url: '/user/queryUserMessage',
          dataType: 'json',
          success: function (res) {
            $(".mui-media-body").html(template("tmp",res))
          }
      })

     $("#logout").on("click",function () {
         $.ajax({
              type: 'get',
              url: '/user/logout',
              dataType: 'json',
              success: function (res) {
                 location.href="./login.html"
              }
          })
     }) 
})